<?php

class Application_Model_Apartment extends Application_Model_RealEstate
{

	protected $_apartmentId;
	protected $_floor;
	protected $_room;
	protected $_balcony;
	protected $_garage;
	
	
	public function getAttribs()
	{
		$attribs = array(
				'name'		=> $this->getName(),
				'description'		=> $this->getDescription(),
				'url'			=> $this->getUrl(),
				'images'		=> $this->getImages(),
				'surface'		=> $this->getSurface(),
				'room' 		=> $this->getRoom(),
				'floor'		=> $this->getFloor(),
				'garage'	=> $this->getGarage(),
				'balcony'	=> $this->getBalcony(),
		);
		return $attribs;
	}
	/**
	 * @return the $_apartmentId
	 */
	public function getApartmentId() {
		return $this->_apartmentId;
	}

	/**
	 * @return the $_floor
	 */
	public function getFloor() {
		return $this->_floor;
	}

	/**
	 * @return the $_room
	 */
	public function getRoom() {
		return $this->_room;
	}

	/**
	 * @return the $_balcony
	 */
	public function getBalcony() {
		return $this->_balcony;
	}

	/**
	 * @return the $_garage
	 */
	public function getGarage() {
		return $this->_garage;
	}

	/**
	 * @param field_type $_apartmentId
	 */
	public function setApartmentId($_apartmentId) {
		$this->_apartmentId = $_apartmentId;
	}

	/**
	 * @param field_type $_floor
	 */
	public function setFloor($_floor) {
		$this->_floor = $_floor;
	}

	/**
	 * @param field_type $_room
	 */
	public function setRoom($_room) {
		$this->_room = $_room;
	}

	/**
	 * @param field_type $_balcony
	 */
	public function setBalcony($_balcony) {
		$this->_balcony = $_balcony;
	}

	/**
	 * @param field_type $_garage
	 */
	public function setGarage($_garage) {
		$this->_garage = $_garage;
	}

	
	/**
	 * return the texte for the HTML view
	 * @return string
	 */
	public function getGarageRender(){
		return ($this->_garage) ? "Garage" : "";
	}
	
	/**
	 * return the texte for the HTML view
	 * @return string
	 */
	public function getBalconyRender(){
		return ($this->_balcony) ? "Balcony" : "";
	}
	


}